<?php
class Lion_View_Helper_Hotdeals extends Zend_Controller_Action_Helper_Abstract
{
        private $_view;
    public function setView($view) {
            $this->_view = $view;
    }

    public function Hotdeals()
    {  
        require_once '../application/default/models/Hotdeals.php';
    	$model_hotdeals = new Hotdeals();
    	$hotdeals_arr = $model_hotdeals->getHotdeals();
        
        ?>
<!-- Hot Deals start -->
		  <div class="quarry-4">
		   <span class="quarry-4-top"></span>
			<div class="quarry-4-mid">
			   <h1 class="h1-long-1"><?php echo $this->_view->translate("%Hot Deals", "home"); ?></h1>
			   <!-- Hot deal 1 ............. -->
                           <?php foreach ($hotdeals_arr as $key => $val) : ?>                                      
                                   
		       <div class="hot-deal"><a href="hotdeals/id/<?php echo $val['id']?>"><img src="/images/hotdeals/thumbs/<?php echo $val['default_image'];?>" alt="" class="hot-img" /></a>
				 <h2><?php echo $val['title']?></h2>
                                 <p><a href="hotdeals/id/<?php echo $val['id']?>"><?php echo substr($val['description'], 0, 100) ?><?php echo strlen($val['description'])>100?"...":""; ?></a></p>
				 <img src="/images/h-deals.gif" alt="" class="hot-icon" />
			   </div>
			   <?endforeach;?>
			   		   
			</div>
		   <span class="quarry-4-btm"></span>
		  </div><!-- Hot Deals end -->	
        
        <?php
    }
}		
?>
